package com.jiumozhi.spring.annotation;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;

@ComponentScan(basePackages = "com.jiumozhi.spring.annotation")
public class AnnotationTest {


	public static void main(String[] args) {

		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AnnotationTest.class);

//		User user = context.getBean(User.class);
//		System.out.println("==========="+user);
//
//		BdTest test = context.getBean(BdTest.class);
//		System.out.println("==========="+test.getUrl());
		Student bean = context.getBean(Student.class);

		System.out.println("================"+bean.getName()+"===================");



	}

}
